import PropTypes from "prop-types";
const Button = ({color,text, onClick}) => {

  return (
    <button onClick={onClick} style={{backgroundColor: color}} className='btn'>{text}</button>
  );

};


Button.defaultsProps = {
  color: 'steelblue'
};

Button.propTypes = {
  text: PropTypes.string,
  Color: PropTypes.string,
  onClick: PropTypes.func.isRequired
};

export default Button;


